package entities

import "mlgmd.com/hearsay/base"

// Account 账户记录
type Account struct {
	Id            int    `xorm:"pk autoincr" json:"id"`
	Type          string `json:"type"`
	UserId        int    `json:"userId"`
	Coin          int    `json:"coin"`
	Weight        int    `json:"weight"`
	SurplusCoin   int    `json:"surplusCoin"`
	SurplusWeight int    `json:"surplusWeight"`
	ReferType     string `json:"referType"`
	ReferId       int    `json:"referId"`
	Abstract      string `json:"abstract"`
	CreatedTime   int64  `json:"createdTime"`
}

func init() {
	base.Must(base.DB.Sync(&Account{}))
}
